package com.rongsheng.mpchartdemo;

import com.github.mikephil.charting.data.Entry;
import com.github.mikephil.charting.utils.ViewPortHandler;

/**
 * Created by lei on 2017/10/28 0028.
 */

class MyValueFormatter implements com.github.mikephil.charting.formatter.IValueFormatter {
    @Override
    public String getFormattedValue(float value, Entry entry, int dataSetIndex, ViewPortHandler viewPortHandler) {
        return StringUtils.double2String(value, 2);
    }
}
